import request from '@/utils/request'

// 查询书院维护列表
export function listDormbuilding(query) {
  return request({
    url: '/infomanagement/dormbuilding/list',
    method: 'get',
    params: query
  })
}

// 查询书院维护详细
export function getDormbuilding(dormbuildingId) {
  return request({
    url: '/infomanagement/dormbuilding/' + dormbuildingId,
    method: 'get'
  })
}

// 新增书院维护
export function addDormbuilding(data) {
  return request({
    url: '/infomanagement/dormbuilding',
    method: 'post',
    data: data
  })
}

// 修改书院维护
export function updateDormbuilding(data) {
  return request({
    url: '/infomanagement/dormbuilding',
    method: 'put',
    data: data
  })
}

// 删除书院维护
export function delDormbuilding(dormbuildingId) {
  return request({
    url: '/infomanagement/dormbuilding/' + dormbuildingId,
    method: 'delete'
  })
}
